*study 2: mcheck & panas

ttest mcheck_mate, by(mate)
ttest panas_pa, by(mate)
ttest panas_na, by(mate)


*study 2: four-way
logit lie i.sex_r##mate##i.opp_att##i.opp_ssex


*table 4-up
margins, dydx(mate) at(sex_r=(0 1) opp_att=(0 1) opp_ssex=(0 1)) vsquish
margins, dydx(mate) at(sex_r=(0 1) opp_att=(0 1) opp_ssex=(0 1)) vsquish pwcompare(effects)

*table 4-up : simple three-ways
logit lie mate##i.opp_att##i.opp_ssex if sex_r==0
logit lie mate##i.opp_att##i.opp_ssex if sex_r==1

*table 4-up : simple three-ways
logit lie mate##i.opp_att##i.opp_ssex if sex_r==0
logit lie mate##i.opp_att##i.opp_ssex if sex_r==1


*table 4-down: conditional & two-ways
margins, dydx(sex_r) at(mate=(0 1) opp_att=(0 1) opp_ssex=(0 1)) vsquish
margins, dydx(sex_r) at(mate=(0 1) opp_att=(0 1) opp_ssex=(0 1)) vsquish pwcompare(effects)

*table 4-down : simple three-ways
logit lie sex_r##i.opp_att##i.opp_ssex if mate==0
logit lie sex_r##i.opp_att##i.opp_ssex if mate==1
